package com.mypro.common.user;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Function entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tbl_function"
    ,catalog="mypro"
)

public class Function  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String code;
     private String name;
     private String href;
     private Integer parentId;
     private Integer funLevel;
     private Integer funWeight;
     private Boolean haveChild;
     private Boolean valid;


    // Constructors

    @Column(name="VALID_")
    public Boolean getValid() {
		return valid;
	}


	public void setValid(Boolean valid) {
		this.valid = valid;
	}


	/** default constructor */
    public Function() {
    }

    
    /** full constructor */
    public Function(String code, String name, String href, Integer parentId, Integer funLevel, Integer funWeight, Boolean haveChild) {
        this.code = code;
        this.name = name;
        this.href = href;
        this.parentId = parentId;
        this.funLevel = funLevel;
        this.funWeight = funWeight;
        this.haveChild = haveChild;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="ID_", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="CODE_", length=20)

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="NAME_", length=50)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="HREF_", length=150)

    public String getHref() {
        return this.href;
    }
    
    public void setHref(String href) {
        this.href = href;
    }
    
    @Column(name="PARENT_ID")

    public Integer getParentId() {
        return this.parentId;
    }
    
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    
    @Column(name="FUN_LEVEL")

    public Integer getFunLevel() {
        return this.funLevel;
    }
    
    public void setFunLevel(Integer funLevel) {
        this.funLevel = funLevel;
    }
    
    @Column(name="FUN_WEIGHT")

    public Integer getFunWeight() {
        return this.funWeight;
    }
    
    public void setFunWeight(Integer funWeight) {
        this.funWeight = funWeight;
    }
    
    @Column(name="HAVE_CHILD")

    public Boolean getHaveChild() {
        return this.haveChild;
    }
    
    public void setHaveChild(Boolean haveChild) {
        this.haveChild = haveChild;
    }
   








}